package com.xcx.demo.dao;

import com.xcx.demo.entity.Product;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface ProductDAO extends JpaRepository<Product, Integer> {
//    Product findById(Integer id);
//    @Query
    List<Product> findAllByTitleLikeOrDescLike(String keyword1,String keyword2);
}
